<template>
  <div class="head">
    <van-icon name="arrow-left" color="#fff" @click="$router.back(-1)" />
    <slot name="head-title"></slot>
    <slot name="submit"></slot>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" socped>
@color: #c30d1eff;
.head {
  width: 100%;
  height: 60px;
  box-sizing: border-box;
  background-color: @color;
  display: flex;
  align-items: center;
  .van-icon {
    font-size: 20px;
    margin-right: 10px;
  }
  .head-title {
    font-size: 20px;
    font-weight: 500;
    color: #fff;
  }
  .submit{
    margin-left: 227px;
    font-size: 14px;
    color: #fff;
  }
}
</style>